A1 = readmatrix('Nii2_Test_24V.csv')
A2 = readmatrix('Nii2_Test_-24V.csv')

x1 = A1(:,1)
y1 = A1(:,2)*1e12

x2 = A2(:,1)
y2 = A2(:,2)*1e12

for i = 1:76
    m1(i)=y1(i)-i*0.014
end

for i = 1:76
    m2(i)=(y2(i)-i*0.003+0.23)*1.2
end


hold on
xlim([50, 65])
plot(x1,m1,'Linewidth',1,'Color',[0.8 0 0])
plot(x2,m2,'Linewidth',1,'Color',[0 0 0.8])
xlabel('Temperature [K]')
ylabel('Photocurrent [pA]')
ylim([-2.6,2.6])
set(gca,'XMinorTick','on','YMinorTick','on')
set(gca,'box','on','Xcolor',[0 0 0],'Ycolor',[0 0 0])
legend('24V', '-24V')
legend boxoff
hold off

set(gcf,'Position',[0, 0, 200, 200])